package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商品属性值
 * </p>
 *
 * @author greedwind
 * @since 2018-10-23
 */
@TableName("t_item_attribute_value")
public class ItemAttributeValue extends Model<ItemAttributeValue> {

    private static final long serialVersionUID = 1L;

    /**
     * 属性值id
     */
    @TableId(value = "attr_value_id", type = IdType.AUTO)
    private Integer attrValueId;
    /**
     * 属性值
     */
    @TableField("attr_value")
    private String attrValue;
    /**
     * 属性值详细说明
     */
    @TableField("attr_value_desc")
    private String attrValueDesc;
    /**
     * 属性名id:(t_item_attribute.attr_id)
     */
    @TableField("attr_id")
    private Integer attrId;
    /**
     * 有效性:(1:有效; 0:删除)
     */
    @TableField("is_enabled")
    private Integer isEnabled;
    /**
     * 排序号:(排序号越小越靠前)
     */
    @TableField("sort_num")
    private Integer sortNum;
    /**
     * 创建时间
     */
    private Date created;
    /**
     * 修改时间
     */
    private Date modified;


    public Integer getAttrValueId() {
        return attrValueId;
    }

    public void setAttrValueId(Integer attrValueId) {
        this.attrValueId = attrValueId;
    }

    public String getAttrValue() {
        return attrValue;
    }

    public void setAttrValue(String attrValue) {
        this.attrValue = attrValue;
    }

    public String getAttrValueDesc() {
        return attrValueDesc;
    }

    public void setAttrValueDesc(String attrValueDesc) {
        this.attrValueDesc = attrValueDesc;
    }

    public Integer getAttrId() {
        return attrId;
    }

    public void setAttrId(Integer attrId) {
        this.attrId = attrId;
    }

    public Integer getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(Integer isEnabled) {
        this.isEnabled = isEnabled;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getModified() {
        return modified;
    }

    public void setModified(Date modified) {
        this.modified = modified;
    }

    @Override
    protected Serializable pkVal() {
        return this.attrValueId;
    }

    @Override
    public String toString() {
        return "ItemAttributeValue{" +
        "attrValueId=" + attrValueId +
        ", attrValue=" + attrValue +
        ", attrValueDesc=" + attrValueDesc +
        ", attrId=" + attrId +
        ", isEnabled=" + isEnabled +
        ", sortNum=" + sortNum +
        ", created=" + created +
        ", modified=" + modified +
        "}";
    }
}
